package com.sasis.model;
// Generated 2007-5-23 16:08:38 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_CAR"
 *     
 */

public class FlightAdjustCar extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private Integer amount;
    private Timestamp waitTime;
    private String waitAddress;
    private String destination;
    private Timestamp returnTime;
    private Integer operator;
    private Timestamp operatDate;


    // Constructors

    /** default constructor */
    public FlightAdjustCar() {
    }

	/** minimal constructor */
    public FlightAdjustCar(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustCar(Integer flightInfoId, Integer amount, Timestamp waitTime, String waitAddress, String destination, Timestamp returnTime, Integer operator, Timestamp operatDate) {
        this.flightInfoId = flightInfoId;
        this.amount = amount;
        this.waitTime = waitTime;
        this.waitAddress = waitAddress;
        this.destination = destination;
        this.returnTime = returnTime;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="AMOUNT"
     *             length="22"
     *         
     */

    public Integer getAmount() {
        return this.amount;
    }
    
    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    /**       
     *      *            @hibernate.property
     *             column="WAIT_TIME"
     *             length="7"
     *         
     */

    public Timestamp getWaitTime() {
        return this.waitTime;
    }
    
    public void setWaitTime(Timestamp waitTime) {
        this.waitTime = waitTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="WAIT_ADDRESS"
     *             length="256"
     *         
     */

    public String getWaitAddress() {
        return this.waitAddress;
    }
    
    public void setWaitAddress(String waitAddress) {
        this.waitAddress = waitAddress;
    }
    /**       
     *      *            @hibernate.property
     *             column="DESTINATION"
     *             length="256"
     *         
     */

    public String getDestination() {
        return this.destination;
    }
    
    public void setDestination(String destination) {
        this.destination = destination;
    }
    /**       
     *      *            @hibernate.property
     *             column="RETURN_TIME"
     *             length="7"
     *         
     */

    public Timestamp getReturnTime() {
        return this.returnTime;
    }
    
    public void setReturnTime(Timestamp returnTime) {
        this.returnTime = returnTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Timestamp operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("amount").append("='").append(getAmount()).append("' ");			
      buffer.append("waitTime").append("='").append(getWaitTime()).append("' ");			
      buffer.append("waitAddress").append("='").append(getWaitAddress()).append("' ");			
      buffer.append("destination").append("='").append(getDestination()).append("' ");			
      buffer.append("returnTime").append("='").append(getReturnTime()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustCar) ) return false;
		 FlightAdjustCar castOther = ( FlightAdjustCar ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getAmount()==castOther.getAmount()) || ( this.getAmount()!=null && castOther.getAmount()!=null && this.getAmount().equals(castOther.getAmount()) ) )
 && ( (this.getWaitTime()==castOther.getWaitTime()) || ( this.getWaitTime()!=null && castOther.getWaitTime()!=null && this.getWaitTime().equals(castOther.getWaitTime()) ) )
 && ( (this.getWaitAddress()==castOther.getWaitAddress()) || ( this.getWaitAddress()!=null && castOther.getWaitAddress()!=null && this.getWaitAddress().equals(castOther.getWaitAddress()) ) )
 && ( (this.getDestination()==castOther.getDestination()) || ( this.getDestination()!=null && castOther.getDestination()!=null && this.getDestination().equals(castOther.getDestination()) ) )
 && ( (this.getReturnTime()==castOther.getReturnTime()) || ( this.getReturnTime()!=null && castOther.getReturnTime()!=null && this.getReturnTime().equals(castOther.getReturnTime()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getAmount() == null ? 0 : this.getAmount().hashCode() );
         result = 37 * result + ( getWaitTime() == null ? 0 : this.getWaitTime().hashCode() );
         result = 37 * result + ( getWaitAddress() == null ? 0 : this.getWaitAddress().hashCode() );
         result = 37 * result + ( getDestination() == null ? 0 : this.getDestination().hashCode() );
         result = 37 * result + ( getReturnTime() == null ? 0 : this.getReturnTime().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }   





}
